package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyTag record);

    StrategyTag selectByPrimaryKey(Long id);

    List<StrategyTag> selectAll();

    List<StrategyTag> query4List(QueryObject qo);

    int updateByPrimaryKey(StrategyTag record);

    String getNameByDetailId(Long id);

    void insertRelation(@Param("tagId") Long tagId, @Param("detailId") Long detailId);

    StrategyTag selectByName(String tagName);

    List<StrategyTag> selectByDestId(Long destId);
}